<template>
  <div class="security">
    <div class="tit">
      <h3><i class="el-icon-arrow-left" @click="fanhui"></i>安全中心<br><span class="aa">全面保障您的出行安全</span><br>
        <span class="gou"><i class="el-icon-success"></i>100%司机已经通过安全检车</span>
      </h3>
      <div class="tubiao"><i class="el-icon-s-opportunity"></i></div>
    </div>

    <div class="gongju">
      <h3><i class="el-icon-suitcase"></i>安全工具</h3>

      <div class="gj"><span>实名认证</span><br> <a href="#" @click="turenzheng">去认证></a>
        <i class="el-icon-postcard"></i></div>
      <div class="gj" @click="tokaohe"><span>安全考核</span><br> <span >去参加></span>
        <i class="el-icon-location"></i></div>
    </div>

    <div class="anquanzl">
      <h3><i class="el-icon-chat-line-square"></i>安全专栏</h3>
      <ul class="infinite-list" style="overflow:auto">
        <div class="zhuanl" v-for="sa in list">
          <img src="@/assets/xuanfuc.png">
          <div class="aaa">
            <span class="biaoti"><b>{{ sa.featureTitle}}</b></span><br>
            <span class="neirong">{{ sa.featureContent}}</span>
          </div>
        </div>
      </ul>
    </div>
    <div class="baojing">
      <div class="a911"><i class="el-icon-s-opportunity"></i><a :href="'tel:'+911">911</a></div>
      <div class="a117"><i class="el-icon-first-aid-kit"></i><a :href="'tel:'+117">117</a></div>
    </div>

  </div>
</template>

<script>
import AMapLoader from "@amap/amap-jsapi-loader";
import axios from "axios";

export default {
  data() {
    return {
      list:{},
    };
  },
  methods: {
    getList() {
      axios.get('/order/safetyColumn/findAll')
        .then((response) => {
          this.list = response.data;
        })
        .catch((error) => {
          console.error("获取数据失败：", error);
        });
    },
    fanhui(){
      this.$router.push('/shouye');
    },
    tokaohe(){
      this.$router.push('/assess');
    },
    turenzheng(){
      this.$router.push('/UnableCar');
    }
  },
  created() {
    this.getList();
  },

}
</script>

<style scoped>
.security{
  width: 430px;
  height: 1000px;
  background-color: rgb(108, 216, 255);
  float: left;
}
.tit{
  width: 430px;
  height: 120px;
  border-bottom: 1px solid #fff;
  float: left;
  h3{
    font-size: 20px;
    margin-left: 10px;
    color: #ffffff;
    i{
      margin-right: 15px;
      font-size: 25px;
    }
    .aa{
      margin-left: 40px;
    }
    .gou{
      font-size: 15px;
      margin-left: 40px;
      i{
        color: #00ff0b;
        font-size: 15px;
      }
    }
  }
  .tubiao{
    float: right;
    width: 100px;
    height: 100px;
    margin-top: -110px;
    margin-right: 20px;
    font-size: 100px;
    color: #00b706;
  }
}
.gongju{
  width: 410px;
  height: 240px;
  background-color: #ffffff;
  border-radius: 25px;
  float: left;
  margin-top: 20px;
  h3{
    margin-left: 20px;
  }
}
.gj{
  width: 170px;
  height: 80px;
  background-color: rgba(157, 212, 253, 0.65);
  border-radius: 10px;
  float: left;
  margin-left: 20px;
  margin-bottom: 10px;
  span{
    line-height: 30px;
    margin-left: 10px;
  }
  a{
    margin-left: 10px;
  }
  i{
    float: right;
    font-size: 50px;
    line-height: 20px;
    color: #52b7fd;
  }
}
.anquanzl{
  width: 410px;
  height: 500px;
  background-color: #ffffff;
  border-radius: 25px;
  float: left;
  margin-top: 20px;
  ul{
    width: 380px;
    height: 400px;
    margin-left: 20px;
  }
  h3{
    margin-left: 20px;
  }
}
.zhuanl{
  width: 380px;
  height: 100px;
  border-radius: 10px;
  background-color: #f8f7f7;
  img{
    width: 80px;
    height: 80px;
    margin-left: 10px;
    margin-top: 10px;
    float: left;
    margin-right: 10px;
  }
}
.biaoti{
  line-height: 60px;
}
.neirong{
  color: #797979;

}
.baojing{
  width: 430px;
  height: 90px;
  background-color: #ffffff;
  float: left;
  margin-top: 5px;
}
.a911{
  width: 180px;
  height: 50px;
  border: 2px solid red;
  color: red;
  border-radius: 10px;
  background-color: rgba(255, 0, 0, 0.1);
  font-size: 20px;
  float: left;
  i{
    margin-left: 60px;
    margin-top: 15px;
  }
  a{
    color: red;
  }
}
.a117{
  width: 180px;
  height: 50px;
  border: 2px solid #00d0ff;
  color: #00d0ff;
  border-radius: 10px;
  font-size: 20px;
  float: left;
  i{
    margin-left: 60px;
    margin-top: 15px;
  }
  a{
    color: #00d0ff;
  }
}
.aaa{
  float: right;
  width: 280px;
  height: 90px;
}
</style>
